//bange_object.hpp
//Copyright (C) 2010-2011 Oscar (.teri) Triano

//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.

//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.

//You should have received a copy of the GNU General Public License
//along with this program.  If not, see <http://www.gnu.org/licenses/>.

#ifndef _bange_object_
#define _bange_object_

#include <cstring>
#include <lua5.1/lua.hpp>
#include <SFML/Graphics.hpp>
#include <bange_behavior.hpp>

namespace bange{

	class object: public bange::behavior{
		public:
			mutable bool deleted;
			mutable bool visible;
			mutable sf::Drawable *drawable;
		public:
			object(lua_State *);
			~object();
			bool NewIndex(lua_State *);
			bool Index(lua_State *);
			virtual void Process(float){};
			void Move(float, float);
			void Scale(float, float);
			void Rotate(float);
			void SetCenter(float, float);
			
			static void RegisterVM(lua_State *);
			
	};

}

static int bangeobject_Move(lua_State *);
static int bangeobject_Scale(lua_State *);
static int bangeobject_Rotate(lua_State *);
static int bangeobject_SetCenter(lua_State *);

#endif
